textlayout: Avoid some iter comparisons
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Sep 2020 19:35:44 +0000 (15:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Sep 2020 20:41:42 +0000 (16:41 -0400)
commitc09575d9cb868879f5b238cb2e2023213b94e7db
tree299b7a45534cbc934f1ad57ca85c6d928389debe
parent2e5481093743e0ce26cf9634d830cb4032b390d8
textlayout: Avoid some iter comparisons

We were doing more iter comparisons than necessary in the
inner loop of gtk_text_layout_snapshot(), in the presence
of a selection. Rewrite the code to compare line numbers
instead, which is faster than full iter comparisons.
gtk/gtktextlayout.c